package com.bba;

import java.io.InputStream;

import com.bba.fa.CpuUtil;

public class GetInput {
	public static InputStream getInputStream(String fileName) {
		return GetInput.class.getResourceAsStream(fileName);
	}

	public static InputStream getZLSuInputStream() {
		String cpu = CpuUtil.getCpuType();
		if (cpu != null && cpu.contains("x86")) {
			return getInputStream("zld_x86.txt");
		}
		return getInputStream("zld.txt");
	}

	public static InputStream getClassdInputStream() {
		return getInputStream("dest.classd");
	}
}
